package com.dhruvtaara.beta.toolset;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletResponse;

public class WebAction {
	/**
	 * 
	 */
	private static final AppLog logger = new AppLog(
			DefaultEncryption.class.getName());

	/***
	 * 
	 * @param response
	 * @param responseText
	 */
	public static void writeResponse(HttpServletResponse response, String responseText) {
		PrintWriter writer;
		try {
			writer = response.getWriter();
			writer.print(responseText);
		} catch (IOException e) {
			logger.Error(e.toString());
		}
	}
}
